import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
const app = createApp(App)

import 'ant-design-vue/dist/antd.css';
import router from './router/index'
import './utils/prototype.js'
// import 'default-passive-events'
app.use(Antd)
app.use(router)
app.mount('#app')
// import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker'
// import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker'
// import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker'
// import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
// import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker'
// https://stackoverflow.com/questions/65953675/import-monaco-editor-using-vite-2/65966434
// self.MonacoEnvironment = {
//     getWorker(_, label) {
//         if (label === 'json') {
//             return new jsonWorker()
//         }
//         if (label === 'css' || label === 'scss' || label === 'less') {
//             return new cssWorker()
//         }
//         if (label === 'html' || label === 'handlebars' || label === 'razor') {
//             return new htmlWorker()
//         }
//         if (label === 'typescript' || label === 'javascript') {
//             return new tsWorker()
//         }
//         return new editorWorker()
//     }
// }
